<?php
/**
 * index.phtml
 * 
 * @category    Madoqua
 * @package     Module
 * @subpackage  Install
 */

$this->layout()->setLayout('install/install');
//use the installer layout

/**
 * bool to string
 *
 * @param bool $bool
 * @return string
 */
function yesno($bool) {
    return ($bool) ? 'yes' : 'no';
}

?>
<h2>Checking requirements</h2>

<h3>Directory rights</h3>
<p>
    In order to function properly, Madoqua needs write rights to certain directories.
</p>

<dl>
    <dt>Data directory</dt>
    <dd><?php echo yesno($this->writeRightsData); ?></dd>
    
    <dt>Temp directory</dt>
    <dd><?php echo yesno($this->writeRightsTemp); ?></dd>
</dl>
